<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" href="/static//plg/layui/css/layui.css">
    <link rel="stylesheet" href="/static/plg/swiper/swiper.min.css">
    <link rel="stylesheet" href="/static/admin/css/common.css">
    <link rel="stylesheet" href="/static/admin/css/admin.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_666143_1g6kst7g2ba.css">
    {block name="css"}{/block}
</head>
<body class="layui-layout-body">
<div class="layadmin-tabspage-none">
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible">
                    <a href="javascript:void(0)" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="{:url('index/Index/index','','.html','www')}" target="_blank" title="前台">
                        <i class="layui-icon layui-icon-website"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="" data-url="{:url('admin/system/clear')}" id="clear-cache" title="清除缓存">
                        <i class="iconfont icon-Reset"></i>
                    </a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">

                <li class="layui-nav-item">
                    <a href="#">
                        <cite>{:session('user.username','','admin')} </cite>
                        <span class="layui-nav-more"></span>
                        <dl class="layui-nav-child layui-anim layui-anim-upbit">
                            <dd>
                                <a href="{:url('admin/ChangePassword/index')}">修改密码</a>
                            </dd>
                            <dd>
                                <a href="{:url('admin/login/logout')}">退出</a>
                            </dd>
                        </dl>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs">
                    <a href="#">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>
        <div class="layui-side layui-side-menu">
            <div class="layui-side-scroll">
                <div class="layui-logo"><span>后台管理 </span> <i>v3.101</i></div>
                <ul class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item layui-this">
                        <a href="{:url('admin/Index/index')}" > <i class="layui-icon layui-icon-home"></i> <cite>主页</cite></a>

                    </li>
                    {volist name="menu" id="vo"}
                    {if condition="isset($vo['children'])"}
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="iconfont {$vo.icon}"></i>
                            <cite>{$vo.title}</cite>
                            <span class="layui-nav-more"></span>
                        </a>
                        {foreach name="vo['children']" item="v"}
                        <dl class="layui-nav-child">
                            <dd>
                                {if condition="isset($v['children'])"}
                                <a href="javascript:;"> {$v.title} <span class="layui-nav-more"></span></a>
                                <dl class="layui-nav-child">
                                    {foreach name="$v['children']" item="cv"}
                                    <dd data-name="list" data-jump="">
                                        <a href="{:url($cv.name)}"> {$cv.title}</a>
                                    </dd>
                                    {/foreach}
                                </dl>
                                {else /}
                                <a href="{:url($v.name)}"> {$v.title}</a>
                                {/if}
                            </dd>

                        </dl>
                        {/foreach}
                    </li>
                    {else /}
                    <li class="layui-nav-item">
                        <a href="{:url($vo.name)}" > <i class="iconfont {$vo.icon}"></i> <cite>{$vo.title}</cite></a>
                    </li>
                    {/if}
                    {/volist}
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            <i class="layui-icon layui-icon-component"></i>
                            <cite>DEMO</cite>
                            <span class="layui-nav-more"></span>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;">栅格<span class="layui-nav-more"></span></a>
                                <dl class="layui-nav-child">
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                </dl>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;">栅格<span class="layui-nav-more"></span></a>
                                <dl class="layui-nav-child">
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                </dl>
                            </dd>
                        </dl>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="javascript:;">栅格<span class="layui-nav-more"></span></a>
                                <dl class="layui-nav-child">
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                    <dd data-name="list" data-jump="">
                                        <a href="javascript:;">等比例列表排列</a>
                                    </dd>
                                </dl>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-body">
            {block name="body"}
            <div class="layadmin-tabsbody-item layui-show">
                <div class="layui-card">
                    <div class="layui-tab layui-tab-brief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">首页</li>
                        </ul>
                    </div>
                    <div class="layui-breadcrumb layui-mbx layui-layout-right" style="visibility: visible">
                        <a lay-href="">主页</a><span lay-separator="">/</span>
                        <a><cite>消息中心</cite></a>
                    </div>
                </div>
            </div>
            {/block}
        </div>
    </div>
</div>

<script src="/static/plg/jquery/jquery-3.3.1.min.js"></script>
<script src="/static/plg/swiper/swiper.min.js"></script>
<script src="/static/plg/layui/layui.all.js"></script>
<script src="/static/admin/js/admin.js"></script>
<script>
    // 定义全局JS变量
    var GV = {
        current_controller: "{$controller|default=''}/",
        current_action: "{$action|default=''}",
        base_url: "__STATIC__"
    };
    /**
     * 后台侧边菜单选中状态
     */
    $('.layui-nav-item').removeClass('layui-this');
    $('.layui-nav-tree').find('a[href*="' + GV.current_controller + GV.current_action +'"]').parent().addClass('layui-this').parents('.layui-nav-item').addClass('layui-nav-itemed')
    $('.layui-nav-tree').find('a[href*="' + GV.current_controller + '"]').parent().parent().parent().addClass('layui-nav-itemed')

</script>
{block name="js"}{/block}
<!--页面JS脚本-->
{block name="script"}{/block}
</body>
</html>